/**
 * Demonstrates a range of Button options the framework offers out of the box
 */
Ext.define('cloud.view.standards.StandardsEdit', {
    extend: 'Ext.form.FormPanel',
    xtype: 'standardsedit',

    requires: ['Ext.form.Panel', 'Ext.form.FieldSet'],
    config: {
        //style:'font-size:14px',
        title: '更新规格分类',
        items: [
            {
                xtype: 'toolbar',
                docked: 'bottom',
                layout: {
                    type: 'hbox',
                    pack: 'end'
                },
                items: [
                    {
                        xtype: 'hiddenfield',
                        name: 'csid'
                    },
                    {
                        id: 'standards_edit_submit',
                        iconMask: true,
                        scope: this,
                        cls:'x-button2',
                        text: '更新',
                        style: 'float:right'
                    },
                    {
                        id: 'standards_del',
                        iconMask: true,
                        scope: this,
                        cls:'x-button2',
                        text: '删除',
                        style: 'float:right'
                    }
                ]
            },
            {
                xtype: 'fieldset',
                title: '更新规格分类',
                defaults: {
                    labelwidth: '20%',
                    xtype: 'textfield',
                    required: true,
                    clearIcon: true
                },
                items: [
                    {   id:'standsedit_name',
                        name: 'name',
                        label: '规格名称',
                        maxLength: 50,
                        placeHolder: '请输规格分类名称'
                    },
                    {
                        xtype: 'textareafield',
                        id: 'standsedit_explains',
                        name: 'explain',
                        maxLength: 1000,
                        maxRows: 10,
                        label: '规格介绍',
                        required: true,
                        clearIcon: false
                    }
                ]
            }
        ]
    }
});